home *** CD-ROM | disk | FTP | other *** search
- Path: news.mindlink.net!news
- From: genew@mindlink.bc.ca (Gene Wirchenko)
- Newsgroups: comp.lang.c
- Subject: Re: division problem
- Date: Sat, 03 Feb 1996 04:42:38 GMT
- Organization: MIND LINK! - British Columbia, Canada
- Message-ID: <4eup7n$f32@fountain.mindlink.net>
- References: <31097D77.11AA@rain.org> <26JAN199622082450@erich.triumf.ca> <4eh246$u6h@airdmhor.gen.nz> <4ej4ha$66@fountain.mindlink.net> <DLzvGG.2rn@uns.bris.ac.uk> <Pine.SOL.3.90.960130150923.21923F-100000@flute> <4etjdj$fil@airdmhor.gen.nz>
- NNTP-Posting-Host: line147.nwm.mindlink.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- gumboot@airdmhor.gen.nz (Simon Hosie) wrote:
-
- [snip]
-
- > Hello? Can anybody hear me? Ok, let's try again...
-
- >#if -3 / 2 == -2
- > celcius = ((fahrenheit - 32) * 10 + 9) / 18;
- >#else
- > celcius = ((fahrenheit - 32) * 10 + ((fahrenheit - 32 >= 0) ? 9 : -9))
- > / 18;
- >#endif
-
- > There.. complete, portable, accurate rounding.
-
- And unreadable too. Also, accurate rounding would include the
- correct spelling of "celsius" <G>.
-
- Sincerely,
-
- Gene Wirchenko
-
- C Pronunciation Guide:
- y=x++; "wye equals ex plus plus semicolon"
- x=x++; "ex equals ex doublecross semicolon"
-
-